<html>
<head><meta charset="utf-8"><title>test_utils · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test_utils.html">test_utils</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="197803209"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test_utils/near/197803209" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test_utils.html#197803209">(May 16 2020 at 16:24)</a>:</h4>
<p>So, I am looking into setting up a publishing workflow for rust-analyzer. I found quite a few packages are using test_utils as normal dependencies but the name suggests it's a dev dep. Can someone clarify this confusion for me?</p>



<a name="197837752"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test_utils/near/197837752" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test_utils.html#197837752">(May 17 2020 at 08:32)</a>:</h4>
<p>One reason for that is the <code>tested_by</code> macro, which needs to be placed in production code</p>



<a name="197837825"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test_utils/near/197837825" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test_utils.html#197837825">(May 17 2020 at 08:35)</a>:</h4>
<p>Should we move it to a new crate?</p>



<a name="197837999"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test_utils/near/197837999" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test_utils.html#197837999">(May 17 2020 at 08:40)</a>:</h4>
<p>or in one of the existing crates?</p>



<a name="197838064"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test_utils/near/197838064" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test_utils.html#197838064">(May 17 2020 at 08:43)</a>:</h4>
<p>No, the current setup is good</p>



<a name="197838509"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test_utils/near/197838509" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test_utils.html#197838509">(May 17 2020 at 08:57)</a>:</h4>
<p>So, we need to publish <code>test_utils</code> crate if we want to publish the other crates. Probably after renaming it to <code>ra_test_utils</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>